package com.dao;
import com.dto.in.RegisterInfo;
import com.entity.LoginInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2019/1/2 0002.
 */
public interface LoginDao {

    int deleteUserYou50();

    int deleteBillIsPhone();

    int findOpenId(@Param("openId") String openId);

    int findUserId(@Param("openId")String openId);

    int insertUser(LoginInfo loginInfo);

    LoginInfo findUser(@Param("openId")String openId);

    String findUserType(@Param("openId")String openId);

    String findPhone(@Param("userId") Integer userId);

    int findPhoneIsNo(@Param("phone")String phone);

    int updatePhone(@Param("userId") Integer userId,@Param("phone") String phone);

    LoginInfo findUserMsg(@Param("userId")Integer userId);

    int findRandomNum(@Param("num")String num);

    String findInvitationCode(@Param("userId")Integer userId);

    int findPuserId(@Param("code")String code);

    int insertMoney(@Param("userId")Integer userId, @Param("money")BigDecimal money);

    int findUserMessage(@Param("userId")Integer userId);

    int newRegister(@Param("registerInfo") RegisterInfo registerInfo,@Param("num")String num);

    int findTimedTask();

    List<LoginInfo> findUserAll();



}
